package guidointegrador;

import integrador.CadastroPousadas;
import integrador.RepositorioPousadas;
import br.ufpe.cin.miniJava.gui.Button;
import br.ufpe.cin.miniJava.gui.Component;
import br.ufpe.cin.miniJava.gui.Label;
import br.ufpe.cin.miniJava.gui.Panel;

public class RemoverPousada extends Panel{
		
	
	protected CadastroPousadas cadastro;
	   
	private Label label1D;


	protected ComboPousadas comboPousadas;
	   

	protected Button botaoD;
	
	public RemoverPousada(CadastroPousadas cad){
		cadastro = cad;
		
		   this.label1D = new Label ("nome pousada ");
		   this.comboPousadas = new ComboPousadas(cad.getRepositorio());
		   this.botaoD = new Button("remover");
		   botaoD.addClickListener(new RemoverPousadasListener(this));
		   
		   this.add(label1D,10,20);
		   this.add(comboPousadas,10,50);
		   
		   this.add(botaoD, 10, 100);
		   this.setSize(400, 400);
		   this.setVisible(true);
	   }
	   
	  

}